<?php
	header("Content-type:text/html;charset=utf-8");
	$name = $_POST["username"];
	$password = $_POST["password"];
	$conn = mysql_connect("localhost","root","root");
	mysql_select_db('feiyadi');
	$result = mysql_query("select * from yonghu where username = '$name' and userpassword = $password",$conn);
	
	if(mysql_num_rows($result) == 1){
		echo "登录成功";
	}else{
		echo "登录失败";
		//mysql_query("insert into student values(9,'李四',12)",$conn);
	}
?>